From ef1189d8066d8f158e1b3491dc0849f566ec66cf Mon Sep 17 00:00:00 2001 From: "emellor@leeni.uk.xensource.com" Date: Tue, 21 Mar 2006 11:56:11 +0100 Subject: [PATCH] Increase timeout while waiting for console/tty node to appear in the store: the intention appears to have been 500msec, but struct timeval when used with a select() is in usec, not msec. The timeout has been set to 250msec (500msec seems a little long, in any case). Signed-off-by: Ewan Mellor --- tools/console/client/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/console/client/main.c b/tools/console/client/main.c index f500a593ad..aba35ec2c6 100644 --- a/tools/console/client/main.c +++ b/tools/console/client/main.c @@ -242,7 +242,7 @@ int main(int argc, char **argv) now = time(0); while (str_pty == NULL && (now + 5) > time(0)) { - struct timeval tv = { 0, 500 }; + struct timeval tv = { 0, 250000 }; select(0, NULL, NULL, NULL, &tv); /* pause briefly */ str_pty = xs_read(xs, XBT_NULL, path, &len); -- 2.30.2